
#ifndef HINGEHANDLER_H
#define HINGEHANDLER_H

#include <BHingeConstraint>
#include <BSphereHandler>

using namespace BWE;

class HingeHandler : public BSphereHandler
{
public:
	HingeHandler();
	~HingeHandler();

protected:
	virtual void attached(BViewer* viewer);
	virtual void detached(BViewer* viewer);

	virtual void paint(BPainter& painter);
	virtual void render(BRender& render);

private:
	BHolder<BNode>				_nodeA;
	BHolder<BNode>				_nodeB;
	BHolder<BHingeConstraint>	_hingeConstraint;
};

#endif
